﻿/* 
 * Enterprise Library Extensions - DI + ORM.
 * Copyright (C) 2006
 *
 * GNU General Public License
 *
 * This program is free software; you can redistribute 
 * it and/or modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either version 2 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 */
#region Using directives

using System;
using System.Text;
using ELE.Common.Util;

#endregion

namespace ELE.EnterpriseLibrary.Naming.Configuration
{
  /// <summary>
  /// Initialization parameters for context definition from context configuration file subcontexts
  /// </summary>
	public class ContextInitializer
	{
    private bool mIsInitial = false;
    private string mConfigurationFile = NamingContextConstants.DEFAULT_INITIAL_FILE;
    private ClassAssemblyPair mContextClass;
    /// <summary>
    /// Default empty constructor
    /// </summary>
    public ContextInitializer()
		{
		}
    /// <summary>
    /// Is this defined as initial context
    /// </summary>
    /// <value></value>
    public bool IsInitial
    {
      get { return mIsInitial; }
      set { mIsInitial = value; }
    }
    /// <summary>
    /// path to config file
    /// </summary>
    /// <value></value>
    public string ConfigurationFile
    {
      get { return mConfigurationFile; }
      set { mConfigurationFile = value; }
    }
    /// <summary>
    /// Class used to create the context object (see the factory)
    /// </summary>
    /// <value></value>
    public ClassAssemblyPair ContextClass
    {
      get { return mContextClass; }
      set { mContextClass = value; }
    }
  }
}
